/**
 * 欢迎场景
 * @param a 颜色
 * @param b 引用方法
 * @param c 场景，stage
 * @constructor
 */
var WelComeScene = function (a, b, c) {
    //step1:创建容器
    var d = new createjs.Container;
    c.addChild(d);

    //step2:创建一个Shape对象
    var e = new createjs.Shape;
    e.graphics.beginFill(a).rect(0, 0, 640, 960).endFill();
    d.addChild(e);

    //step3:banner图片
    a = new createjs.Bitmap(queue.getResult("banner"));
    d.addChild(a);

    //step4:帮助
    a = new createjs.Bitmap(queue.getResult("help"));
    a.setAnchorPoint(0.5, 0.5);
    a.x = 320;
    a.y = 480;
    d.addChild(a);

    //step5:描述
    a = new createjs.Bitmap(queue.getResult("discription"));
    a.setAnchorPoint(0.5, 0.5);
    a.x = 320;
    a.y = 700;
    d.addChild(a);

    //step6:播放按钮
    a = new createjs.Bitmap(queue.getResult("playbtn"));
    a.setAnchorPoint(0.5, 0.5);
    a.x = 155;
    a.y = 850;
    d.addChild(a);
    a.on("mousedown", function (a) {
        IS_TOUCH && a.nativeEvent instanceof MouseEvent || (this.scaleY = this.scaleX = 0.95);
    }, a);
    a.on("pressup", function (a) {
        this.scaleY = this.scaleX = 1;
        step = score = 0;
        b();
        c.removeChild(d);
    }, a);

    //step7:历史记录
    a = new createjs.Bitmap(queue.getResult("topbtn"));
    a.setAnchorPoint(0.5, 0.5);
    a.x = 485;
    a.y = 850;
    d.addChild(a);
    a.on("mousedown", function (a) {
        IS_TOUCH && a.nativeEvent instanceof MouseEvent || (this.scaleY = this.scaleX = 0.95);
    }, a);
    a.on("pressup", function (a) {
        this.scaleY = this.scaleX = 1;
    }, a);
    c.addChild(d);
};